package com.it.you.service.pay.handle;

import org.springframework.stereotype.Service;

@Service
public class JingDongPayHandler extends PayHandler {

    @Override
    public String pay(String code) {
        if ("jingdong".equals(code)) {
            return "===发起京东支付===";
        } else {
            return getNext().pay(code);
        }
    }

}
